<?php
/* --------------------------------------------------------------
   gm_meta_new.php 2008-07-28 gambio
   Gambio OHG
   http://www.gambio.de
   Copyright (c) 2008 Gambio OHG
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/
	defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr>
		<td valign="top" align="left" class="main">
			<b><?php echo MENU_TITLE_GM_META_NEW; ?></b> 
		</td>
		<td valign="top" align="right" class="main">
			&nbsp;
		</td>
	</tr>
</table>
<br />
<form method="post" action="<?php echo xtc_href_link('gm_meta.php', 'action=' . '&gm_new=1&lang_id=' . $lang_id); ?>">
	<table border="0" width="100%" cellspacing="0" cellpadding="2" id="gm_table">
		<tr>
			<td valign="top" align="left" class="main" width="250">
				<?php echo GM_PRE_META_KEY; ?>
			</td>
			<td valign="top" align="left" class="main">
				<select style="width:400px;" name="gm_meta">
					<option value="1" selected><?php echo MENU_TITLE_GM_META_NEW; ?></option>
					<option value="description">description</option>
					<option value="author">author</option>
					<option value="date">date</option>
					<option value="copyright">copyright</option>
					<option value="publisher">publisher</option>
					<option value="page-topic">page-topic</option>
					<option value="page-type">page-type</option>
					<option value="audience">audience</option>		
				</select>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="200">
				<?php echo GM_META_KEY; ?>
			</td>
			<td valign="top" align="left" class="main">
				<textarea style="width:400px;" rows="1" name="gm_new_key"></textarea>
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main" height="40">				
				<?php echo GM_META_VALUE; ?>
			</td>
			<td valign="middle" align="left" class="main">				
				<textarea style="width:400px;" rows="1" name="gm_new_value"></textarea>
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main" height="40">				
				<?php echo GM_META_LANG; ?>
			</td>
			<td valign="middle" align="left" class="main">
				<?php $gm_languages = gm_get_language(); ?>
				<select name="gm_lang[]" multiple size="<?php echo count($gm_languages); ?>">
					<?php													
						for($i = 0; $i < count($gm_languages); $i++) {
							if($_SESSION['languages_id'] == $gm_languages[$i]['languages_id']) {
								echo '<option selected value="' . $gm_languages[$i]['languages_id'] . '">' . $gm_languages[$i]['name'] . '</option>';
							} else {
								echo '<option value="' . $gm_languages[$i]['languages_id'] . '">' . $gm_languages[$i]['name'] . '</option>';
							}
						}
					?>					
				</select>
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main">				
				&nbsp;
			</td>
			<td valign="middle" align="left" class="main">				
				&nbsp;
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main">				
				<input class="button" type="submit" value="<?php echo BUTTON_SAVE;?>">																									 
			</td>
			<td valign="middle" align="left" class="main">				
				<span id="gm_status" style="height:20px"></span>																									 
			</td>
		</tr>
	</table>
</form>